import { post_json ,get} from '@/http/axios'

const getMenegerPractice = (data) => {
  return post_json('/practice/getMenegerPractice',data)
}
// 查看教练员练车表各个时间段剩余的位置
const getAnyTime = (data) => {
  return post_json('/practice/getAnyTime',data)
}
// 更新练车表
const updataPractice = (data) => {
  return post_json('/practice/updataPractice',data)
}
// 创建学员练车记录
const createTrainee = (data) => {
  return post_json('/trainees/getTrainee',data)
}
// 获取学员今日预约状态
const getTraineeStatus = (data) => {
  return post_json('/trainees/findByIdStatus',data)
}
// 获取用户信息详情
const getUserDeilById = (id) => {
  return get(`/user/getUserDeilById${id}`,"")
}
// 获取学员今日预约状态
const getTraineeById = (data) => {
  return post_json('/trainees/getTraineeById',data)
}
// 创建学员评分记录
const createScore = (data) => {
  return post_json('/score/createScore',data)
}
// 学员评价教练员
const makeScore = (data) => {
  return post_json('score/makeScore',data)
}
export default{
  makeScore,
  createScore,
  getTraineeById,
  getUserDeilById,
  getTraineeStatus,
  createTrainee,
  updataPractice,
  getMenegerPractice,
  getAnyTime
}